package com.astar.mapper;

import com.astar.entity.CustomChapter;
import com.astar.entity.PractiseCourseChapter;
import com.astar.entity.PractiseCourseType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 分类练习-科目-章节表  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-01-31
 */
@Repository
public interface PractiseCourseChapterMapper extends BaseMapper<PractiseCourseChapter> {

    List<CustomChapter> selectLists(CustomChapter customChapter);

    @Select("select  distinct  course_name,id from practise_course_type")
    List<PractiseCourseType> selectCourse();

}
